/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package UserInterface;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;

/**
 *
 * @author subx
 */
public class SRCMenuItem extends JMenuItem {
    ActionListener action;

    public SRCMenuItem() {
        addActionListener(action);
    }

    public SRCMenuItem(String text) {
        super(text);
        addActionListener(action);
    }

    public void setAction(ActionListener action) {
        this.action = action;
        addActionListener(action);
    }

}
